package com.czwx.bee.business.manager.utils;

import com.czwx.bee.base.common.dto.ResponseDto;
import com.czwx.bee.business.manager.exception.ManagerExceptionEnum;

/**
 * @Author:wiki
 * @Date:Create in 2018/7/4 0004 上午 10:41
 */
public class ManagerExceptionUtil {

    public static ResponseDto  tranResponseDto(ResponseDto rs, ManagerExceptionEnum managerExceptionEnum){
        rs.setCode(managerExceptionEnum.getCode());
        rs.setMesg(managerExceptionEnum.getMessage());
        return rs;
    }
}
